package com.study.online.redis;

import org.springframework.stereotype.Component;

/**
 * @author: chenhs
 * @date: Created in 15:41 2020/1/2
 **/
@Component
public class MessageReceiveHandler {
    private String message;

    public void messagePush(String msg) {
        System.out.println("----------收到消息了message：" + msg);
        this.message = msg;
    }

    public String getMessage() {
        return message;
    }
}
